<template>
  <span @click="toggle">
    <el-icon-expand v-if="collapse"></el-icon-expand>
    <el-icon-fold v-if="!collapse"></el-icon-fold>
  </span>
</template>

<script lang='ts' setup>
let props = defineProps<{
  collapse: boolean
}>()

let emits = defineEmits(['update:collapse'])
let toggle = () => {
  emits('update:collapse', !props.collapse)
}
</script>

<style lang='scss' scoped>

</style>